<template>
  <el-dialog
    title="提示信息"
    :visible.sync="dialogVisible"
    width="500px"
    :close-on-click-modal="false"
    :close-on-press-escape="false"
    :append-to-body="true"
    :destroy-on-close="true"
    :modal-append-to-body="false"
  >
    <div style="display: flex; justify-content: center; padding: 38px 90px">
      <div>
        <div class="dialog-text">您的商城已配置成功，</div>
        <div class="dialog-text">请到商城管理进行商品上下架。</div>
        <div style="display: flex; align-items: center; margin-top: 43px">
          <el-button style="border-radius: 5px; margin-right: 12px" @click="onClose">取 消</el-button>
          <el-button type="primary" style="border-radius: 5px; background: #1890ff" @click="onToShop"
            >查看商城</el-button
          >
        </div>
      </div>
    </div>
  </el-dialog>
</template>

<script>
export default {
  name: 'DialogConfigSuccess',
  data() {
    return {
      dialogVisible: false,
    }
  },
  methods: {
    // 查看商城
    onToShop() {
      this.$router.push({ path: '/shopManage' })
      this.dialogVisible = false
    },
    // 关门
    onClose() {
      this.dialogVisible = false
    },
  },
}
</script>

<style lang="scss" scoped>
.dialog-text {
  font-family: PingFang SC, PingFang SC;
  font-weight: 400;
  font-size: 14px;
  color: #666666;
  line-height: 24px;
}
</style>